package com.songlin.db;

import org.xutils.db.annotation.Table;

import org.xutils.db.annotation.Column;
import org.xutils.db.annotation.Table;

import java.sql.Blob;
import java.sql.Date;

import cn.bmob.v3.datatype.BmobDate;

/**
 * Created by moqikaka on 17/5/26.
 */

@Table(name = "person")
public class Person{

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Column(name = "id", isId = true, autoGen = true, property = "NOT NULL")
    private int id;
    //卡号 (唯一)
    @Column(name = "cardNum")
    private int cardNum;

    //姓名
    @Column(name = "name")
    private String name;

    //电话
    @Column(name = "phone")
    private String phone;

    //日期
    @Column(name = "date")
    private String date;


    public String getHeadName() {
        return headName;
    }

    public void setHeadName(String headName) {
        this.headName = headName;
    }

    //头像二进制数据
    @Column(name = "headName")
    private String headName;

    //状态码
    @Column(name = "state")
    private int state;

    // 办卡类型  1月卡  2季卡  3半年卡  4年卡
    //状态码
    @Column(name = "cardType")
    private int cardType;

    public Person(int cardNum,String name,String phone,String date,String head, int cardType) {
        this.name = name;
        this.cardNum = cardNum;
        this.phone = phone;
        this.date = date;
        this.headName = head;
        this.cardType = cardType;
    }


    public int getCardType() {
        return cardType;
    }

    public void setCardType(int cardType) {
        this.cardType = cardType;
    }

    //默认的构造方法必须写出，如果没有，这张表是创建不成功的
    public Person() {}

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public int getCardNum() {
        return cardNum;
    }

    public void setCardNum(int cardNum) {
        this.cardNum = cardNum;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }



}
